package com.RedRiver.hospitalsystem.personal_service.service;

import com.RedRiver.hospitalsystem.personal_service.infra.model.Department;
import com.RedRiver.hospitalsystem.personal_service.service.Form.DepartmentChangeForm;
import com.RedRiver.hospitalsystem.personal_service.service.Form.DepartmentForm;
import com.RedRiver.hospitalsystem.personal_service.service.Form.PageForm;
import com.RedRiver.hospitalsystem.personal_service.service.info.DepartmentInfo;
import com.RedRiver.hospitalsystem.personal_service.service.info.DoctorPageInfo;
import com.RedRiver.hospitalsystem.result.Result;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 龙世超
 * @since 2022-04-26
 */
public interface DepartmentService extends IService<Department> {

    IPage<DepartmentInfo> findPageDepartment(PageForm form);

    Result createDepartment(DepartmentForm departmentForm);

    Result updateDepartment(DepartmentChangeForm departmentChangeForm);

    Result delDepartment(Integer departmentId);
}
